package com.vs.model;

import org.apache.struts.action.ActionForm;

public class ExpenseForm extends ActionForm//ValidatorForm 
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer expenseId;
	private Integer expenseTypeId;
	private String expenseTypeName;
	private Integer expenseProjectId;
	private String expenseProjectName;
	private String expenseSupplierName;
	private String expenseDate;
	private String expenseAmount;
	private String notes;
	private Integer laborTypeId;
	private String laborType;
	private String action;
	private String searchType;
	private String addedBy;
	private String modifiedBy;
	
	private String payMode;
	private String chqNo;
	private String chqDate;
	private String bankName;
	private String chqComment;
	
	public String getAddedBy() {
		return addedBy;
	}

	public void setAddedBy(String addedBy) {
		this.addedBy = addedBy;
	}

	public String getModifiedBy() {
		return modifiedBy;
	}

	public void setModifiedBy(String modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	public String getSearchType() {
		return searchType;
	}
	
	public void setSearchType(String searchType) {
		this.searchType = searchType;
	}
	
	public String getPayMode() {
		return payMode;
	}

	public void setPayMode(String payMode) {
		this.payMode = payMode;
	}

	public String getChqNo() {
		return chqNo;
	}

	public void setChqNo(String chqNo) {
		this.chqNo = chqNo;
	}

	public String getChqDate() {
		return chqDate;
	}

	public void setChqDate(String chqDate) {
		this.chqDate = chqDate;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getChqComment() {
		return chqComment;
	}

	public void setChqComment(String chqComment) {
		this.chqComment = chqComment;
	}

	public String getAction() {
		return action;
	}
	
	public void setAction(String action) {
		this.action = action;
	}

	public Integer getLaborTypeId() {
		return laborTypeId;
	}

	public void setLaborTypeId(Integer laborTypeId) {
		this.laborTypeId = laborTypeId;
	}

	public String getLaborType() {
		return laborType;
	}

	public void setLaborType(String laborType) {
		this.laborType = laborType;
	}

	public Integer getExpenseId() {
		return expenseId;
	}

	public void setExpenseId(Integer expenseId) {
		this.expenseId = expenseId;
	}

	public Integer getExpenseTypeId() {
		return expenseTypeId;
	}

	public void setExpenseTypeId(Integer expenseTypeId) {
		this.expenseTypeId = expenseTypeId;
	}

	public String getExpenseTypeName() {
		return expenseTypeName;
	}

	public void setExpenseTypeName(String expenseTypeName) {
		this.expenseTypeName = expenseTypeName;
	}

	public Integer getExpenseProjectId() {
		return expenseProjectId;
	}

	public void setExpenseProjectId(Integer expenseProjectId) {
		this.expenseProjectId = expenseProjectId;
	}

	public String getExpenseProjectName() {
		return expenseProjectName;
	}

	public void setExpenseProjectName(String expenseProjectName) {
		this.expenseProjectName = expenseProjectName;
	}

	public void setExpenseSupplierName(String expenseSupplierName) {
		this.expenseSupplierName = expenseSupplierName;
	}

	public String getExpenseSupplierName() {
		return expenseSupplierName;
	}

	public String getExpenseDate() {
		return expenseDate;
	}

	public void setExpenseDate(String expenseDate) {
		this.expenseDate = expenseDate;
	}

	public String getExpenseAmount() {
		return expenseAmount;
	}

	public void setExpenseAmount(String expenseAmount) {
		this.expenseAmount = expenseAmount;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	@Override
	public String toString() {
		return "ExpenseForm [expenseId=" + expenseId + ", expenseTypeId="
				+ expenseTypeId + ", expenseTypeName=" + expenseTypeName
				+ ", expenseProjectId=" + expenseProjectId
				+ ", expenseProjectName=" + expenseProjectName
				+ ", expenseSupplierName=" + expenseSupplierName
				+ ", expenseDate=" + expenseDate + ", expenseAmount="
				+ expenseAmount + ", notes=" + notes + ", laborTypeId="
				+ laborTypeId + ", laborType=" + laborType + ", action="
				+ action + ", searchType=" + searchType + ", addedBy="
				+ addedBy + ", modifiedBy=" + modifiedBy + ", payMode="
				+ payMode + ", chqNo=" + chqNo + ", chqDate=" + chqDate
				+ ", bankName=" + bankName + ", chqComment=" + chqComment + "]";
	}

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof ExpenseForm) {
			ExpenseForm exp = (ExpenseForm) obj;
			if (exp.expenseId.equals(this.expenseId))
				return true;
		}
		return false;
	}
	
}
